<template>
  <div class="app-container">
    <!-- 顶部导航栏 -->
    <nav class="nav-bar">
      <div class="logo-container">
        <img class="logo" :src="websiteConfig.logo" alt="" />
        <p class="logo-text">麦好货应用中心</p>
      </div>
      <ul class="nav-links">
        <li><a href="#" class="nav-link">文档中心</a></li>
        <li><a href="#" class="nav-link">控制台</a></li>
        <li><a href="#" class="login-btn">登录</a></li>
      </ul>
    </nav>
    <!-- 主体内容 -->
    <main class="main-content">
      <div class="hero-section">
        <div class="main">
          <h1 class="hero-title">开放生态，助力商家</h1>
          <h2 class="hero-subtitle">赋能内容电商生态，服务商家与开发</h2>
          <button type="button" class="start-btn">立即入驻</button>
        </div>
        <div class="image" style="flex-grow: 1; order: 2; margin: 0; min-height: 100%">
          <div class="image-container">
            <div class="image-bg"></div>
            <img class="VPImage image-src" :src="websiteConfig.logo2" alt="Kitty" />
          </div>
        </div>
      </div>
      <!-- 功能介绍模块 -->
      <div class="feature-section">
        <div class="feature-item">
          <LogoVue class="feature-icon icon-blue" />
          <h3 class="feature-title">最新技术栈</h3>
          <p class="feature-description">全面满足电商生态 商家所需</p>
        </div>
        <div class="feature-item">
          <HomeOutline class="feature-icon icon-green" />
          <h3 class="feature-title">自研商家</h3>
          <p class="feature-description">为具备自主研发能力的商家提供数据能力支持</p>
        </div>
        <div class="feature-item">
          <PersonOutline class="feature-icon icon-red" />
          <h3 class="feature-title">软件服务商</h3>
          <p class="feature-description"
            >基于开放能力开发订单管理、商品搬家等软件上架服务市场服务抖店商家</p
          >
        </div>
        <div class="feature-item">
          <CubeOutline class="feature-icon icon-purple" />
          <h3 class="feature-title">电商ERP</h3>
          <p class="feature-description"
            >为商家提供供应链管理、商品管理、订单管理、库存管理、物流管理、逆向处理等服务</p
          >
        </div>
        <div class="feature-item">
          <SettingsOutline class="feature-icon icon-orange" />
          <h3 class="feature-title">订单管理</h3>
          <p class="feature-description"
            >为商家提供订单处理、发货履约、售后处理、多店铺运营等店铺基本订单管理服务</p
          >
        </div>
        <div class="feature-item">
          <LockClosedOutline class="feature-icon icon-cyan" />
          <h3 class="feature-title">商品管理 </h3>
          <p class="feature-description"
            >为抖音平台商家提供产品一键搬家、上架，内容及设计优化，产品数据分析及关键词优化等服务
          </p>
        </div>
      </div>
    </main>
  </div>
</template>

<script setup lang="ts">
  import { websiteConfig } from '@/config/website.config';
  // 引入图标组件
  import {
    LogoVue,
    CubeOutline,
    LockClosedOutline,
    HomeOutline,
    PersonOutline,
    SettingsOutline,
  } from '@vicons/ionicons5';
  // 此处可添加页面交互逻辑
</script>

<style lang="less" scoped>
  .app-container {
    font-family: Arial, sans-serif;
  }
  .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 120px;
    background-color: #fff;
    height: 72px;
  }
  .logo-container {
    height: 30px;
    display: flex;
    align-items: center;
  }

  .nav-links {
    list-style-type: none;
    display: flex;
  }
  .logo {
    height: 24px;
    margin-right: 10px;
  }
  .logo-text {
    font: 16px bold;
  }
  .nav-link {
    margin-right: 20px;
  }
  .login-btn {
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
  }
  .main-content {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    margin-top: 100px;
    padding: 0 200px;
  }
  .hero-section {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
  }
  .hero-title {
    box-sizing: border-box;
    word-break: break-word;
    line-height: 64px;
    font-size: 56px;
    color: #1e6fff;
    text-align: left;
    font-weight: bold;
  }
  .hero-subtitle {
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 64px;
    font-size: 56px;
    text-align: left;
  }
  .large-logo {
    height: 100px;
    margin-bottom: 30px;
  }
  .start-btn,
  .preview-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
    cursor: pointer;
  }
  .start-btn {
    background-color: #007bff;
    color: #fff;
  }
  .preview-btn {
    background-color: #f4f4f4;
    color: #333;
  }
  .feature-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .feature-item {
    width: 30%;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
  }
  .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transform: translate(-32px, -32px);
  }
  .image-bg {
    width: 320px;
    height: 320px;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .VPImage.image-src {
    max-width: 320px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .feature-icon {
    height: 40px;
    margin-bottom: 10px;
  }
  .icon-blue {
    color: blue;
  }
  .icon-green {
    color: green;
  }
  .icon-red {
    color: red;
  }
  .icon-purple {
    color: purple;
  }
  .icon-orange {
    color: orange;
  }
  .icon-cyan {
    color: cyan;
  }
  .feature-title {
    line-height: 24px;
    font-size: 16px;
    font-weight: 600;
  }
  .feature-description {
    padding-top: 8px;
    line-height: 24px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(60, 60, 60, 0.7);
  }
</style>
